<template>
  <div class="stylish">
    <div v-for="(item, index) in recommends" :key="index" class="stylish-item">
      <a :href="item.link">
        <img :src="item.image" alt="" />
      </a>
      <div>{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Stylish",
  props: {
    recommends: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style scoped>
.stylish {
  display: flex;
  text-align: center;
  width: 100%;
  font-size: 12px;
  padding: 10px 0px 20px;
  border-bottom: 10px solid #eee;
}
.stylish-item {
  flex: 1;
}
.stylish img {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}
</style>